package org.dstart.object.util
{
	import flash.geom.Point;
	
	public class EMath
	{
		/** 取得两点间的距离 **/
		public function getLength(p1:Point, p2:Point):Number
		{
			var xMax:Number = p2.x - p1.x;
			var yMax:Number = p2.y - p1.y;
			
			return Math.sqrt(xMax * xMax + yMax * yMax);
		}
	}
}